package com.alks.function.data.dto.finance.ryfinance;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author MS
 * @since 2024/5/24上午11:47
 */
@Data
public class CostDetailDto {

    @ApiModelProperty(value = "单据号")
    private String slipNo;

    @DateTimeFormat("yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "单据日期")
    private LocalDate slipDate;

    @DateTimeFormat("yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "制单日期")
    private LocalDateTime sysDate;

    @ApiModelProperty(value = "部门名(表命名有问题，这个就是名字)")
    private String deptNo;

    @ApiModelProperty(value = "指令")
    private String lotNo;

    @ApiModelProperty(value = "费用类型名称")
    private String typeName;

    @ApiModelProperty(value = "厂商名")
    private String vendorName;

    @ApiModelProperty(value = "送货单号")
    private String sendNo;

    @ApiModelProperty(value = "费用描述")
    private String costDesc;

    @NumberFormat
    @ApiModelProperty(value = "数量")
    private BigDecimal qty;

    @ApiModelProperty(value = "单位")
    private String costUnit;

    @NumberFormat
    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @NumberFormat
    @ApiModelProperty(value = "金额")
    private BigDecimal amt;

    @ApiModelProperty(value = "结算方式")
    private String accountName;

    @ApiModelProperty(value = "结算月份")
    private String financeYymm;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "扣款")
    private String processStatus;

    @ApiModelProperty(value = "结算单号")
    private String balanceNo;

    @ApiModelProperty(value = "备注信息")
    private String remarkCw;

    @ApiModelProperty(value = "制单员")
    private String sysUser;

    @NumberFormat
    @ApiModelProperty(value = "指令数")
    private BigDecimal orderQty;

    @ApiModelProperty(value = "检核标志（变色）")
    private String cfmFlag;

    @NumberFormat
    @ApiModelProperty(value = "序号")
    private BigDecimal item;

    @ApiModelProperty(value = "序号")
    private Integer id;
}
